import { ListItemModel } from '@/interface';

// 销售产品批次状态
export enum SalesProductBatchStatusEnum {
  PENDING_UPLOAD = 1,
  PENDING_PROCESS = 2,
  PENDING_CONFIRM = 3,
  COMPLETED = 4,
  ERROR = -1,
  ALL = '',
}
export const salesProductBatchStatusList: ListItemModel<SalesProductBatchStatusEnum>[] = [
  { label: '待上传原文件', value: SalesProductBatchStatusEnum.PENDING_UPLOAD, color: 'cyan' },
  { label: '待处理', value: SalesProductBatchStatusEnum.PENDING_PROCESS, color: 'blue' },
  { label: '待确认', value: SalesProductBatchStatusEnum.PENDING_CONFIRM, color: 'orange' },
  { label: '已完成', value: SalesProductBatchStatusEnum.COMPLETED, color: 'green' },
  { label: '异常', value: SalesProductBatchStatusEnum.ERROR, color: 'red' },
  { label: '全部', value: SalesProductBatchStatusEnum.ALL },
];

// 物流单状态
export enum LogisticsBillStatusEnum {
  DELIVERING = 4,
  SIGNED = 5,
  CANCELED = 8,
  ALL = '',
}
export const logisticsBillStatusList: ListItemModel<LogisticsBillStatusEnum>[] = [
  { label: '已发货', value: LogisticsBillStatusEnum.DELIVERING, color: 'blue' },
  { label: '已完成', value: LogisticsBillStatusEnum.SIGNED, color: 'green' },
  { label: '已取消', value: LogisticsBillStatusEnum.CANCELED, color: 'red' },
  { label: '全部', value: LogisticsBillStatusEnum.ALL },
];

// 发货方式
export enum DeliveryMethodEnum {
  SELF_PICKUP = 1,
  DELIVERY = 2,
}
export const deliveryMethodList: ListItemModel<DeliveryMethodEnum>[] = [
  { label: '自提', value: DeliveryMethodEnum.SELF_PICKUP },
  { label: '送货', value: DeliveryMethodEnum.DELIVERY },
];
